﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NSpotifyLib;

namespace Tester
{
    class Program
    {
        static void Main(string[] args)
        {
            Track track = SpotifySearcher.Track.Search("No sleep till Brooklyn").OrderByDescending(t => t.Popularity).First();
            Console.WriteLine(track.Artist.Name);

            Album album = SpotifySearcher.Album.Search(track.Album.Name).First();
            Console.WriteLine("Album: " + album.Name);
            Console.WriteLine("Album link: " + album.SpotifyLink);
            Console.WriteLine("Released: " + track.Album.Released);
        }
    }
}
